Contents | Index | < Browse | Browse >

LETTERgetcharULETTER Reads the next character from the standard input stream.

Overview
#include <stdio.h>

ch = getchar();

int ch;
Portability
ANSI

Description
Reads the next character from the standard input stream and thus equals getc(stdin).

Returns
The standard input stream's next character or "EOF" if there are no more characters or an error occured.